﻿namespace DesignPattern.com.mediator {
    /// <summary>
    /// 同事
    /// </summary>
    public abstract class Colleague {
        protected Mediator mediator;

        public Mediator Mediator {
            get { return mediator; }
            set { mediator = value; }
        }

        public Colleague(Mediator mediator){
            this.mediator = mediator;
        }

        /// <summary>
        /// 请求
        /// </summary>
        /// <param name="msg"></param>
        public abstract void request(string msg);
        
    }
}